#import <Foundation/Foundation.h>
#import <objc/runtime.h>

#import "PICALStatus.h"

NSString* const kPICalOptionsViewStyle = @"viewStyle";
NSString* const kPICalOptionsShowCalendar = @"isShowCalendar";
NSString* const kPICalOptionsDaySummary = @"daySummary";
NSString* const kPICalOptionsFutureOnly = @"isFutureEventsOnly";

NSInteger const kPICalOptionsViewStyleDefault = kPICalViewStyleTimeAtEnd;
BOOL const kPICalOptionsShowCalendarDefault = NO;
NSInteger const kPICalOptionsDaySummaryDefault = kPICalDaySummaryStyleFull;
BOOL const kPICalOptionsFutureOnlyDefault = NO;


@implementation PICalStatus

@synthesize itemsReturnedCount, nextChangeDue, nextAlarmDue, shownDialHelp, mapViewType, showCalendar, daySummaryStyle;
@synthesize itemsFilteredCount, itemsWithDetailsCount, showEmoji, lowColour, shortDates, showIcons, singleLineOniPad, viewStyle;


// ******************************************************************************************
#pragma mark -
#pragma mark Initialisation and object management

- (id)init
{
    if ((self = [super init])) {
        self.itemsReturnedCount = 0;
        self.itemsFilteredCount = 0;
        self.itemsWithDetailsCount = 0;
        
        self.showEmoji = YES;
        self.lowColour = YES;
        
        self.singleLineOniPad = NO;
        self.viewStyle = kPICalViewStyleTraditional;

        self.shortDates = -1;
        self.showIcons = YES;
        self.showCalendar = YES;
        
        self.nextChangeDue = [NSDate date];
        self.nextAlarmDue = nil;
    }
    
    return self;
}

- (void)dealloc
{
    [nextAlarmDue release];
    [nextChangeDue release];
    
    [super dealloc];
}

@end
